function getRole(){
	axios.get('/role/getRole')
	  .then(function (response) {
	    console.log(response);
	    console.log(response.data);
	   
	    var respData = response.data;
	    
	   searchApp.tableData = respData;
	   searchApp.pagination.totalCount = respData.length;
	  })
	  .catch(function (error) {
	    console.log(error);
	  });
}


function addRole(){
	axios.post('/role/addRole',{
		name : searchApp.searchform.one,
		description : searchApp.searchform.two,
		dataTime : searchApp.searchform.two
	})
	  .then(function (response) {
	    console.log(response);
	    console.log(response.data);
	  })
	  .catch(function (error) {
	    console.log(error);
	  });
}


function getRoleByID(){
	var rest = '/role/getRoleByID/' + searchApp.searchform.one;
	
	axios.get(rest)
	  .then(function (response) {
	    console.log(response);
	    console.log(response.data);
	  })
	  .catch(function (error) {
	    console.log(error);
	  });
}

